<template>
  <div class="comment">
    <div class="comment__header">
      <div class="comment__left">
        <img src="@/assets/images/login.png" />
        <div class="comment__name">
          <div class="comment__n">上官贡嘎</div>
          <div class="comment__score">
            <van-rate size="16px" color="#FAC923" v-model="rate" />
          </div>
        </div>
      </div>
      <div class="comment__date">2023/05/23</div>
    </div>
    <div class="comment__desc">
      课程评价课程评价课程评价课程评价课程评价课程评价课程评价课程评价课程评价课程评价课程评价课程评课程评价课程评价课程评价课程评价课程评价课程评价
    </div>
  </div>
</template>
<script name="Comment" setup>
import { ref } from "vue";
const rate = ref(4);
</script>
<style lang="scss" scoped>
.comment {
  padding: 16px 0;
  background-color: #fff;
  &__header {
    display: flex;
    align-items: center;
  }
  &__left {
    img {
      width: 36px;
      height: 36px;
      border-radius: 50%;
    }
  }
  &__name {
    padding-left: 6px;
  }
  &__n {
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    color: #1e1f1f;
    line-height: 20px;
  }
  &__score {
  }
  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  &__left {
    display: flex;
    align-items: center;
  }
  &__date {
    font-size: 12px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #9898ae;
    line-height: 18px;
  }
  &__desc {
    padding-top: 10px;
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #272b2d;
    line-height: 21px;
    text-align: justify;
  }
}
</style>